package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CommenBean2;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.WX)
public class ConnWx extends BaseAsyPost<CommenBean2> {

    public String openid;


    public ConnWx(String openid, AsyCallBack<CommenBean2> asyCallBack) {
        super(asyCallBack);
        this.openid = openid;

    }

    @Override
    protected CommenBean2 parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();

        CommenBean2 loginBean = new CommenBean2();

        loginBean = gson.fromJson(object.toString(), CommenBean2.class);


        return loginBean;


    }
}



